package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author stone
 * @date 2022/09/01 15:10
 */
@Controller
public class HelloController {

    @Autowired
    UserService userService;

    @RequestMapping("hello")
    @ResponseBody
    public BaseRespVo hello() {
        userService.hello();
        return BaseRespVo.ok("hello");
    }
}
